<div class="buy-car-page cartPayClass" data-pay_account_id="{$alipay_account}" style="margin-bottom:25px;">
  {if $promotion_sub_info}
  <div class="active-prompt">活动商品满{number_format($promotion_sub_info.limit_price, 2)}元，减{number_format($promotion_sub_info.offer_price, 2)}元</div>
  {/if}
  <div class="buy-list">
    <ul class="js_cartListUl">
      {foreach $cart_list as $k=>$v}
      {$property_list = goods_helper::get_sku_property_value($v.sku_id, 1)}
      <li class="clearfix {if $v.stock <1}disabled{/if}" data-sku_id="{$v.sku_id}" data-stock="{$v.stock}" data-is_promotion="{$v.is_promotion}" data-goods_id="{$v.goods_id}">
      <div class="cart-top">
        <span class="img-box">
          <img src="{_image($v.goods_cover)}" width="131">
        </span>
        <div class="infor">
          <h3>{if $v.is_promotion > 0}<i class="red-icon">加购价</i>{/if}<a href="{AnUrl("goods/{$v.goods_id}")}">{$v.goods_title} {$property_list}</a></h3>
          {if $v.gift_detail}
          {foreach $v.gift_detail as $g_k=>$g_v}
          <p class="price gift" data-gift_num="{$g_v.gift_num}">赠品：{$g_v.goods_title} x <em>{$g_v.goods_num}</em></p>
          {/foreach}
          {/if}
          <p class="price"><span>售价：{number_format($v.goods_price, 2)}元</span><span>合计：<em class="js_currCount">{if $v.is_gift > 0}0.00{else}{number_format($v.goods_price*$v.goods_num, 2)}{/if}</em>元</span></p>
          <div class="add-sub clearfix js_goodsNumDiv">
            {if $v.stock > 0}
              <a href="javascript:;" class="sub {if $v.goods_num == 1}sub-disabled{/if} js_goodsNumSub"></a>
              <span class="txt"><input type="text" data-is_promotion="{if $v.is_promotion > 0}1{else}0{/if}" value="{if $v.is_promotion > 0}1{else}{$v.goods_num}{/if}" class="txt1 js_cartGoodsNum" {if $v.is_promotion > 0}readonly{/if}/></span>
              <a href="javascript:;" class="add js_goodsNumAdd {if $v.is_promotion > 0}sub-disabled{/if}"></a>
            {else}
              <span class="txt">暂无库存</span>
            {/if}
          </div>
        </div>
        {if $v.is_gift == 0}<a href="javascript:;" class="del js_cartDelete"></a>{/if}
        </div>
        {if $v.goods_notice}
          <p class="price notice"><span>{$v.goods_notice}</span></p>
        {/if}
      </li>
      <script type="text/javascript">
      s.products+=";{$v.goods_id},";
      </script>
      {/foreach}
    </ul>
  </div>
  {if $promotion_list}
  <div class="coupons">
    <ul class="js_relationUl">
      {foreach $promotion_list as $k=>$v}
      {$in_cart_sku_id = cart_helper::goods_in_cart($v.goods_id)}
      <li class="js_sltDiscountGoods" data-type="{if $in_cart_sku_id}enabled{else}disabled{/if}" data-id="{$v.id}" data-sku_id="{$in_cart_sku_id}" data-sku_ids="{$v.sku_ids}" data-sku_num="{$v.sku_num}" data-title="{$v.title}" data-cover="{$v.cover}" data-goods_id="{$v.goods_id}">
        <label><span class="check-box"><input type="checkbox" {if $in_cart_sku_id}checked="checked"{/if}/><i class="check-ok"></i></span></label>+{$v.sale_price}元换购{$v.title}
        {if $v.sku_num > 1}
        <em class="arrow"></em>
        {/if}
      </li>
      {/foreach}
    </ul>
  </div>
  {/if}
  <div class="total-money clearfix">
    <span class="money">应付总额：<em class="js_cartCount js_cartCount_{$alipay_account}">{cart_helper::get_cart_price_total(1, 1, 1, $cart_list)}</em>元</span>
    <a href="javascript:;" data-href="{AnUrl("order/trade?pay_account={$alipay_account}")}" class="btn js_openLink" data-login="1" id="baiduTjBtnAccount">去结算</a>
  </div>
</div>